import request from '@/router/axios'

export function fetchMarketbasicList(obj) {  // 查询营销基本信息
    return request({
      url: '/api/campaign/' + obj.campaignId,
      method: 'get',
      data:obj
    })
}


export function fetchmarketgrouplist(obj) {  // 查询营销人群
  return request({
    url: '/api/campaign/campaignSet/targetQuery',
    method: 'post',
    data:obj
  })
}

export function fetchMarketreward(obj) {  // 查询营销所选权益
  return request({
    url: '/api/campaign/campaignSet/reward/' + obj.campaignId,
    method: 'post',
    data:obj
  })
}

export function fetchMarketcommunication(obj) {  // 查询营销所选沟通设置
  return request({
    url: '/api/campaign/campaignSet/communication/' + obj.campaignId,
    method: 'post',
    data:obj
  })
}

export function fetchMarketschedule(obj) {  // 查询营销时间
  return request({
    url: '/api/campaign/campaignSet/campaignSchedule/' + obj.campaignId,
    method: 'post',
    data:obj
  })
}
// /campaign/campaignSet/targetQuery